<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备ID')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_id" data-rule="required"  class="form-control" name="row[device_id]" type="text" value="{$row.device_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_sn" data-rule="required" class="form-control" name="row[device_sn]" type="text" value="{$row.device_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_type" data-rule="required" class="form-control" name="row[device_type]" type="text" value="{$row.device_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备名字')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_name" data-rule="required" class="form-control" name="row[device_name]" type="text" value="{$row.device_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否激活')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-activate_status" data-rule="required" class="form-control" name="row[activate_status]" type="number" value="{$row.activate_status|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否故障')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-err_status" data-rule="required" class="form-control" name="row[err_status]" type="number" value="{$row.err_status|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('在线状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-online_status" data-rule="required" class="form-control" name="row[online_status]" type="number" value="{$row.online_status|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('最后心跳时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-last_heartbeat" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[last_heartbeat]" type="text" value="{$row.last_heartbeat}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('省份')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province" data-rule="required" class="form-control" name="row[province]" type="text" value="{$row.province|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('城市')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-city" data-rule="required" class="form-control"  name="row[city]" type="text" value="{$row.city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('区域')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-county" data-rule="required" class="form-control" name="row[county]" type="text" value="{$row.county|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('场地')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-place" data-rule="required" class="form-control" name="row[place]" type="text" value="{$row.place|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('物联网卡')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sim" class="form-control" name="row[sim]" type="text" value="{$row.sim|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
